import storage from 'good-storage'
// import { saveToken as saveTokenForAndroid, signOut as signOutForAndroid, saveAccountInfo, getAccountInfo, signOut } from 'common/js/android'


export function getUserName() {
  if (storage.get('sc_username')) {
    return storage.get('sc_username').name
  } else {
    return 'admin'
    // return '1194684'
  }
}

export function saveUserData(data) {
  storage.set('sc_username', data)
}

export function getUserInfo() {
  return storage.get('sc_userinfo')
}

export function saveUserInfo(data) {
  storage.set('sc_userinfo', data)
}